﻿using Domain.Types;
using Infrastructure.AggregateBase;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;


/// <summary>
/// 管理员表
/// </summary>
[Table("Banner")]
public class BannerAggregate : AggregateRoot<BannerAggregate, int>
{
    [Key]
    [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
    public override int ID { get; set; }
    public BannerCategoryEnum Category { get; set; }
    [StringLength(2000)]
    public string ImgUrl { get; set; }
    [StringLength(500)]
    public string Data { get; set; }
    public int Sort { get; set; }
    public bool Enable { get; set; }
    public DateTime StartTime { get; set; }
    public DateTime EndTime { get; set; }
}

